define(()=>{
     return function(a){

        let str="";
        a.forEach(val=>{
         str += ` <div index="${val.goodsId}">
         <a href="xiangqingye1.html?id=${val.goodsId}"> <img src="${val.proImg}" alt=""></a> 
         <span class="name">${val.proName}</span>
         <span class="qbj">q币价: &nbsp;&nbsp;<i>${val.qb}Q币</i> </span>
         <span class="wxj">${val.qb}</span>
         <button class="jrgwc">加入购物车</button>
     </div>`;
        })
        $(".xqq").html(str)
     }
}

);